import random


def main():
    # 生成两个0到999之间的随机数
    a = random.randint(0, 999)
    b = random.randint(0, 999)

    # 确保a <= b
    if a > b:
        a, b = b, a  # 交换a和b的值

    # 输出结果
    print(a, b)


if __name__ == "__main__":
    main()